import bus from '@/bus'
let data = {
    status: 'pass',
    columns: [{
        title: '活动名称',
        key: 'title',
        align: 'left',
        minWidth: 80
    }, {
        title: '日期',
        align: 'left',
        minWidth: 200,
        render: (h, param) => {
          return h('div', param.row.startDate + ' - ' + param.row.endDate)
        }
    }, {
        title: '跳转链接',
        key: 'url',
        align: 'left',
        minWidth: 450
    }, {
        title: '操作',
        align: 'right',
        minWidth: 120,
        render:(h,params) => {
            return h('div',[
                h('Button', {
                    class: 'mr',
                    props:{
                        size:'small',
                        type:'primary'
                    },
                    on: {
                        click: () => {
                            bus.$emit('onEdit', params.row.id)
                        }
                    }
                }, '编辑'),
                h('Button', {
                    props:{
                        size:'small',
                        type: 'warning'
                    },
                    on: {
                        click: () => {
                            bus.$emit('onDelete', params.row.id, params.row.title, params.index)
                        }
                    }
                }, '删除')
            ])
        }
    }],
    data: []
}
export default data